﻿namespace Aurora.SingalR.Hubs
{
    public class HubUser
    {
        /// <summary>
        /// 连接ID
        /// </summary>
        public string ConnectionID { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public int Id { get; set; }

        public HubUser(string name, int id, string connectionId)
        {
            this.Name = name;
            this.Id = id;
            this.ConnectionID = connectionId;
        }
    }
}
